<template>
	<!-- 厉川报价 _ 报价 -->
	<view class="offer">
		<view class="offer_top">
			<view class="offer_StatusBar" :style="'height:'+(statusBarHeight*2+88) + 'rpx'"></view>
		</view>
		<view class="offer_content" :style="'padding-top:'+(statusBarHeight*2+80) + 'rpx'">
			<view class="offer_hr"></view>
			<view class="offer_content_" v-for="(item, index) in detailsList" :key="index" @click="goLcDetails(item.id)">
				<view class="offer_content_title">{{item.name}}</view>
				<u-icon class="offer_content_icon" name="arrow-right" color="#565656" size="40"></u-icon>
				<view class="offer_hr_" v-if="index < detailsList.length-1"></view>
			</view>
			<view class="offer_hr"></view>
		</view>
		<view class="offer_bg"></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				statusBarHeight: "25",
				detailsList: [
					{name: "通版"},
					{name: "XX行业"}
				]
			}
		},
		onLoad() {
			this.init()
		},
		methods: {
			init() {
				uni.getSystemInfo({
					success:res => {
						this.statusBarHeight = res.statusBarHeight;
						console.log(this.statusBarHeight)
					},
				});
				
				this.$api.industies().then(res => {
					this.detailsList = res.data
				})
				
			},
			goLcDetails(id) {
				// 跳转带id过去
				uni.navigateTo({
					url: '../details/details?id=' + id +"&previous=" + true
				})
			}
		}
	}
</script>

<style>
	.offer{
		background-color: #FFFFFF;
	}
	.offer_top{
		width: 750rpx;
		color: #ffffff;
	}
	.offer_StatusBar{
		position: fixed;
		top: 0;
	}
	.offer_content{
		width: 750rpx;
		border-top: 1;
	}
	.offer_hr{
		height: 2rpx;
		width: 750rpx;
		opacity: 0.08;
		background-color: #000000;
	}
	.offer_hr_{
		height: 2rpx;
		/* width: 750rpx; */
		opacity: 0.08;
		background-color: #000000;
	}
	.offer_content_{
		margin-left: 40rpx;
		position: relative;
	}
	.offer_content_title{
		line-height: 44rpx;
		margin-top: 32rpx;
		font-size: 32rpx;
		padding-bottom: 32rpx;
		display: inline-block;
		font-weight: 600;
	}
	.offer_content_icon{
		position: absolute;
		right: 40rpx;
		top: 32rpx;
		display: inline-block;
	}
	.offer_bg{
		width: 750rpx;
		height: 100vh;
		position: fixed;
		top: 0;
		z-index: -1;
	}
</style>
